//
//  SelectScreen.h
//  Playlist
//
//  Created by fjaros on 10/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>

#import "CreateScreen.h"


@interface SelectScreen : UIViewController <UITableViewDataSource, UITableViewDelegate> {
    UITableView *tView;
    UIToolbar * bottomBar;
    UIBarButtonItem * viewButton;
    UIBarButtonItem * editButton;
    UIBarButtonItem * deleteButton;
    UIButton * playButton;
    NSString * documentsPath; 
    NSArray * allPlists;
    NSString * selectedPlaylist;
    BOOL isPlaying;
    
    MPMusicPlayerController *musicPlayer;
}

@property (nonatomic, retain)IBOutlet UIToolbar * bottomBar;
@property (nonatomic, retain)IBOutlet UIBarButtonItem * viewButton;
@property (nonatomic, retain)IBOutlet UIBarButtonItem * editButton;
@property (nonatomic, retain)IBOutlet UIBarButtonItem * deleteButton;
@property (nonatomic, retain)IBOutlet UIButton * playButton;

-(IBAction)viewButtonPushed;
-(IBAction)editButtonPushed;
-(IBAction)deleteButtonPushed;
-(IBAction)playButtonPushed;
-(void)showPlaylists;
-(void)loadAllLists;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
-(int)selectedRow;

@end
